package com.platform.qujia.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class IntegralDeductionRule {

    @ApiModelProperty(value = "规则id")
    private Long ruleId;

    @ApiModelProperty(value = "活动id")
    private Long activityId;

    @ApiModelProperty(value = "抵现积分数量")
    private Long integralNum;

    @ApiModelProperty(value = "抵现现金金额")
    private BigDecimal amt;

    @ApiModelProperty(value = "抵扣限制类型 1:不限制，2：固定限制，3：梯度限制")
    private String ruleType;

    @ApiModelProperty(value = "删除标识 0：未删除,1：删除")
    private String isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date updateTime;

    private List<GradientRule> gradientRuleList;

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getIntegralNum() {
        return integralNum;
    }

    public void setIntegralNum(Long integralNum) {
        this.integralNum = integralNum;
    }

    public BigDecimal getAmt() {
        return amt;
    }

    public void setAmt(BigDecimal amt) {
        this.amt = amt;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType == null ? null : ruleType.trim();
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<GradientRule> getGradientRuleList() {
        return gradientRuleList;
    }

    public void setGradientRuleList(List<GradientRule> gradientRuleList) {
        this.gradientRuleList = gradientRuleList;
    }
}